1 | import { Metadata, ServiceObject } from '@google-cloud/common';
|
2 | import { Storage } from './storage';
|
3 | export interface StopCallback {
|
4 | (err: Error | null, apiResponse?: Metadata): void;
|
5 | }
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | declare class Channel extends ServiceObject {
|
22 | constructor(storage: Storage, id: string, resourceId: string);
|
23 | stop(): Promise<Metadata>;
|
24 | stop(callback: StopCallback): void;
|
25 | }
|
26 | /**
|
27 | * Reference to the {@link Channel} class.
|
28 | * @name module:@google-cloud/storage.Channel
|
29 | * @see Channel
|
30 | */
|
31 | export { Channel };
|